<html>
<!-- Use "<img src="data:image/.." to display pictures from database-->
<style>
 {{{defaultstyle}}}
 body {margin: 20px 20px}
 table {width: 90%; box-shadow: 5 5 10 #777;}
 td, th {border: solid #eee 1px; font-size: 12px; padding: 10 10; }
 th {background: #888; color: white; padding: 5px 5px; draggable: true; }
 img {box-shadow: 3 3 5 #888; padding: 5 5; border: solid #eee 1px; border-radius: 10px; margin: 5 5;}
 @page {margin-top: 30px; }
 .pageheader {border-bottom: solid #aaa 1px; text-align: center; font-size: 10px; left: 5%; width: 90%; position: running(heading)}
 .pagefooter {border-top: solid #aaa 1px; text-align: center; font-size: 10px; left: 5%; width: 90%}
</style>
<script type="passcript"></script>

<div class="pageheader">
 Fish world, <span class="page"/>/<span class="pagecount"/>
</div>

<div class="pagefooter">
 Fish world
</div>


<h2>Pictures</h2>

<div>
<DATAPACKET>
 <METADATA autosort="true">
  <FIELDS>
   <FIELD name="CATEGORY" caption="Category" width="15%"/>
   <FIELD name="COMMON_NAME" caption="Common Name" width="15%"/>
   <FIELD name="NOTES" caption="Notes" width="70%">
    <template-cell>
     <div title="<img width=400 src=&quot;data:image/bitmap;base64,{{GRAPHIC}}&quot;/>">
      <img style="float:right" src="data:image/bitmap;base64,{{GRAPHIC}}"/>
       {{NOTES}}
     </div>
    </template-cell>
   </FIELD>
  </FIELDS>
  <SQL>
   select * from biolife
  </SQL>
 </METADATA>
</DATAPACKET>
</div>

</html>
